<!DOCTYPE html>
<html lang="en">
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>CCF预报名系统|修改信息</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="./plugins/fontawesome-free/css/all.min.css">
  <!-- DataTables -->
  <link rel="stylesheet" href="./plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  <link rel="stylesheet" href="./plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
  <link rel="stylesheet" href="./plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="./dist/css/adminlte.min.css">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <li class="nav-item">
        <button type="button" class="btn btn-info" onclick="exitRegister()">退出当前登录</button>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="#" class="brand-link">
      <img src="./dist/img/AdminLTELogo.png" alt="CCF预报名系统" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light">CCF预报名系统</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item">
            <a href="/CCF_Pre_Registration_System/preRegister.html" class="nav-link">
              <i class="nav-icon fas fa-newspaper"></i>
              <p>预报名</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="/CCF_Pre_Registration_System/myInfo.html" class="nav-link">
              <i class="nav-icon fas fa-id-card"></i>
              <p>我的信息</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="/CCF_Pre_Registration_System/changeInfo.html" class="nav-link">
              <i class="nav-icon fas fa-id-card"></i>
              <p>修改信息</p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid" >
        <!--修改用户信息-->
        <div class="card card-widget widget-user shadow">
          <div style="text-align: center;background-color: #1C86EE;height: 100px">
            <div style="color: white;text-align: center;font-size:25px;line-height: 100px">修改个人信息</div>
          </div>
          <div class="card-footer">
            <form action="changeServlet" method="post">
              <div class="form-group">
                <label for="exampleInputEmail1">联系邮箱</label>
                <input type="email" class="form-control" name="email" id="exampleInputEmail1" placeholder="请输入邮箱">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">联系电话</label>
                <input type="text" class="form-control" name="telephone" id="exampleInputTelephone1" placeholder="请输入电话">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword1">当前密码</label>
                <input type="password" class="form-control" name="pw01" id="exampleInputPassword1" placeholder="请输入当前密码">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword2">修改密码</label>
                <input type="password" class="form-control" name="pw02" id="exampleInputPassword2" placeholder="请输入修改密码">
              </div>
              <div class="form-group">
                <label for="exampleInputPassword3">确认密码</label>
                <input type="password" class="form-control" name="pw03" id="exampleInputPassword3" placeholder="确认修改密码">
              </div>
              <div class="form-group">
                <button type="submit" class="btn btn-info">确认修改</button>
              </div>
            </form>
          </div>
        </div>
        <!-- /.card -->
      </div>
    </section>
  </div>
  <!-- /.widget-user -->

  <!-- /.content -->
</div>


<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
  <!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- jQuery -->
<script src="./plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="./plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- DataTables  & Plugins -->
<script src="./plugins/datatables/jquery.dataTables.min.js"></script>
<script src="./plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="./plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="./plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="./plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="./plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="./plugins/jszip/jszip.min.js"></script>
<script src="./plugins/pdfmake/pdfmake.min.js"></script>
<script src="./plugins/pdfmake/vfs_fonts.js"></script>
<script src="./plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="./plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="./plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<script src="./plugins/flot/jquery.flot.js"></script>
<!-- FLOT RESIZE PLUGIN - allows the chart to redraw when the window is resized -->
<script src="./plugins/flot/plugins/jquery.flot.resize.js"></script>
<!-- FLOT PIE PLUGIN - also used to draw donut charts -->
<script src="./plugins/flot/plugins/jquery.flot.pie.js"></script>
<!-- AdminLTE App -->
<script src="./dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="./dist/js/demo.js"></script>
<script>
  function exitRegister(){
    axios({
      method:"post",
      url:"/CCF_Pre_Registration_System/systemControl/exitCurrentLoginUser"
    }).then(function (resp){
      if(resp.data==="success"){
        window.location.href="index.jsp";
      }else {
        alert("请重试");
      }
    })
  }
</script>
</body>
</html>